{% extends "base.html" %}
{% block title %} {{category.name}} - {{blog.title}} {% endblock %}
{% block content%}

<div id="yui-main">
    	<div class="yui-b">
        	<h2>{{category.name}}</h2>
    		{% if entries %}
			{% for entry in entries %}
			
        	<div class="blog" id="post-{{entry.key}}">
            	<div class="blog-hd">
                	<h2><a href="/{{ entry.link }}" rel="bookmark" title="Permanent Link to {{entry.title}}">{{entry.title}}</a></h2>
                    <p>发表时间:{{entry.date|datetz:"Y-m-d"}} | 
                    	<img src="/themes/{{ blog.theme_name }}/img/PostCategIco.gif"/>分类:{%for cate in entry.categories%} <a href="/category/{{cate.slug}}">{{cate.name}}</a> {%endfor%}
                    	{% if entry.strtags %}标签:{%for tag in entry.tags%}<a href="/tag/{{tag|urlencode}}">{{tag}}</a>, {%endfor%}{%endif%} | 
                    	<a href="/{{ entry.link }}">阅读全文</a> | 
                    	{%if self.is_admin%}<a href="{{entry.edit_url}}">编辑</a> | {%endif%}
                    	<img src="/themes/{{ blog.theme_name }}/img/ComListHead.png"/><a href="/{{entry.link}}#comments">点评({{entry.commentcount}})&#187;</a></p>
                </div>
                <div class="blog-bd">
                	<p>{{entry.content_excerpt}}</p>
                </div>
            </div>
            {%endfor%}
            {%endif%}
            <div id="pages">
                <ul>
                 	{% if show_prev %}
					<li><a href="/page/{{ pageindex|add:"-1" }}">&laquo; 上一页</a></li>
					{% endif %}
					{% if show_next %}
					<li><a href="/page/{{ pageindex|add:"1" }}">下一页 &raquo;</a></li>
					{% endif %}
                </ul>
            </div>
      </div></div>
      <div id ="right-bar" class="yui-b">
      	<div id="searchblock">
        	
        <h3>搜索内容</h3>
        <div id="right_search_form">
          <form action="" method="post" id="search-theme-form">
            <div>
              <input name="s" id="edit-search-theme-form-1" size="15" value="请输入关键词" onblur="if(this.value=='') this.value='请输入关键词';" onfocus="if(this.value=='请输入关键词') this.value='';" class="form-text" type="text">
              <input name="op" id="edit-submit" class="btn_search_small" value="" type="submit">
            </div>
          </form>
        </div>
        </div>
        <div id="about-block" class="right-block">
        	<h3>关于</h3>
            <p>本站内容全为原创和翻译，很多内容都是国内独家报道，我们每天为您介绍全球最新的创意科技产品，时刻保持您大脑的清新和充满活力。我们希望每一个来访者在发现、交流、与朋友分享的过程中都能有意外惊喜，这就是我们的一直所追求的。 </p>	
        </div>
        <div id="comments-block" class="right-block">
        	<h3>最近评论</h3>
            <ul>
            	{% for comment in recent_comments %}
            	<li><a href="/{{comment.entry.link}}#comment-{{comment.key.id}}">{{comment.author}}:</a>{{comment.shortcontent}}...</li>
                {%endfor%}
             </ul>
        </div>
        <div id="cat-block" class="right-block">
        	<h3>分类统计</h3>
            <ul>
            	{%for cate in categories%}
 				 <li>	<a href="/category/{{cate.slug}}">{{cate.name}}({{cate.count}})</a></li>
 				{%endfor%}
             </ul>
        </div>
        <div id="links-block" class="right-block">
        	<h3>友情链接</h3>
            <ul>
            	{%for link in blogroll%}
            	<li><a href="{{link.href}}">{{link.linktext}}</a></li>
                {%endfor%}
            </ul>
        </div>
      </div>
 {%endblock%}